package com.dds.system.service.admin.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dds.system.mapper.admin.AdminUserOperationDepartmentMapper;
import com.dds.system.domain.admin.AdminUserOperationDepartment;
import com.dds.system.service.admin.IAdminUserOperationDepartmentService;

/**
 * 运营中心部门Service业务层处理
 * 
 * @author gaolianjie
 * @date 2021-04-14
 */
@Service
public class AdminUserOperationDepartmentServiceImpl implements IAdminUserOperationDepartmentService 
{
    @Autowired
    private AdminUserOperationDepartmentMapper adminUserOperationDepartmentMapper;

    /**
     * 查询运营中心部门
     * 
     * @param id 运营中心部门ID
     * @return 运营中心部门
     */
    @Override
    public AdminUserOperationDepartment selectAdminUserOperationDepartmentById(Long id)
    {
        return adminUserOperationDepartmentMapper.selectAdminUserOperationDepartmentById(id);
    }

    /**
     * 查询运营中心部门列表
     * 
     * @param adminUserOperationDepartment 运营中心部门
     * @return 运营中心部门
     */
    @Override
    public List<AdminUserOperationDepartment> selectAdminUserOperationDepartmentList(AdminUserOperationDepartment adminUserOperationDepartment)
    {
        return adminUserOperationDepartmentMapper.selectAdminUserOperationDepartmentList(adminUserOperationDepartment);
    }

    /**
     * 新增运营中心部门
     * 
     * @param adminUserOperationDepartment 运营中心部门
     * @return 结果
     */
    @Override
    public int insertAdminUserOperationDepartment(AdminUserOperationDepartment adminUserOperationDepartment)
    {
        return adminUserOperationDepartmentMapper.insertAdminUserOperationDepartment(adminUserOperationDepartment);
    }

    /**
     * 修改运营中心部门
     * 
     * @param adminUserOperationDepartment 运营中心部门
     * @return 结果
     */
    @Override
    public int updateAdminUserOperationDepartment(AdminUserOperationDepartment adminUserOperationDepartment)
    {
        return adminUserOperationDepartmentMapper.updateAdminUserOperationDepartment(adminUserOperationDepartment);
    }

    /**
     * 批量删除运营中心部门
     * 
     * @param ids 需要删除的运营中心部门ID
     * @return 结果
     */
    @Override
    public int deleteAdminUserOperationDepartmentByIds(Long[] ids)
    {
        return adminUserOperationDepartmentMapper.deleteAdminUserOperationDepartmentByIds(ids);
    }

    /**
     * 删除运营中心部门信息
     * 
     * @param id 运营中心部门ID
     * @return 结果
     */
    @Override
    public int deleteAdminUserOperationDepartmentById(Long id)
    {
        return adminUserOperationDepartmentMapper.deleteAdminUserOperationDepartmentById(id);
    }
}
